package com.aij.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping(value = "/")
public class IndexController {

    @RequestMapping(value = {"", "/index", "/chat"}, method = RequestMethod.GET)
    public Object chat(HttpServletRequest request) {
        ModelAndView mav = new ModelAndView();
        mav.setViewName("index/chat");
        return mav;
    }

}
